﻿using Microsoft.VisualStudio.Shell;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;

namespace Rechy.RechyVSTool.Common
{
    [ClassInterface(ClassInterfaceType.AutoDual)]
    public class SettingPage : DialogPage
    {
        private string excludeEndsWith;

        [Description("Exclude files eg: EndsWith .cs|.cpp|.h \r\nsplit by \"|\" \r\n\r\nIf Empty will use the default values.")]
        public string ExcludeEndsWith
        {
            get
            {
                if (string.IsNullOrWhiteSpace(excludeEndsWith))
                {
                    return string.Join("|", ConfigHelper.ExcludeEndsWithList);
                }
                return excludeEndsWith;
            }
            set
            {
                excludeEndsWith = value;
            }
        }
    }
}
